package com.ynny.fallback;

import org.springframework.stereotype.Component;

@Component
public class SentinelFallback {
    public static String rtFallback(Throwable e) {
        String S = "慢调用降级，请稍后再试";
        System.out.println(S);
        return S;
    }

    public static String sentinelFallback(Throwable e) {
        String M = "异常比例或者异常数启动，请稍后再试";
        System.out.println(M);
        return M;
    }
}
